class CreateIndexes < ActiveRecord::Migration
  def self.up
    add_index :patients, :hospice_id
    add_index :patient_histories, :patient_id
    add_index :users, :email_address
    add_index :users, [:email_address, :password]
  end

  def self.down
    remove_index :patients, :hospice_id
    remove_index :patient_histories, :patient_id
    remove_index :users, :email_address
    remove_index :users, [:email_address, :password]
  end
end
